<include file='Common/header'/>
<div class="row">
	<div class="col-md-3">
		<div class="panel panel-default">
			<div class="panel-heading">欢迎留言</div>
			<div class="panel-body">
				欢迎留言，请尽量填写能方便联系到您的联系方式，我们将尽快联系您！
			</div>
		</div>
		<include file='Common/contactus'/>
	</div>
	<div class="col-md-9">
		<div class="panel panel-default">
			<div class="panel-body">
				<h3>留言列表</h3>
				<hr>
				<guestbooklist return='guestbook'/>
				<foreach name="guestbook" item="vo" >
					<div class="media">
						<div class="media-left">
							<div style="width:60px;">
								<img src="__IMAGE__/noavatar_middle.gif" alt="">
							</div>
						</div>
						<div class="media-body">
							<p class="alert alert-info">{$vo.content}</p>
						</div>
						<div class="media-right">
							<div style="width:60px;"></div>
						</div>
					</div>
					<notempty name='vo.reply'>
					<div class="media">
						<div class="media-left">
							<div style="width:60px;"></div>
						</div>
						<div class="media-body">
							<p class="alert alert-danger">{$vo.reply}</p>
						</div>
						<div class="media-right">
							<div style="width:60px;">
								<img src="__IMAGE__/nb.jpg" alt="">
							</div>
						</div>
					</div>
					</notempty>
					<hr>
				</foreach>
				<h3>我要留言</h3>
				<form class="form-horizontal well" method="post" action="{:U('add')}">
					<div class="form-group">
						<label for="inputnickname3" class="col-sm-2 control-label">昵称</label>
						<div class="col-sm-10">
							<input name="nickname" type="text" class="form-control" id="inputnickname3">
						</div>
					</div>
					<div class="form-group">
						<label for="inputcontent3" class="col-sm-2 control-label">内容</label>
						<div class="col-sm-10">
							<textarea name="content" id="inputcontent3" class="form-control" rows="6"></textarea>
						</div>
					</div>
					<div class="form-group">
						<label for="inputmobile3" class="col-sm-2 control-label">电话</label>
						<div class="col-sm-10">
							<input type="text" name="mobile" class="form-control" id="inputmobile3">
						</div>
					</div>
					<eq name='Think.config.GUESTBOOK_VERIFY' value='1'>
						<div class="form-group">
							<label for="inputPassword" class="col-sm-2 control-label">
								验证码
							</label>
							<div class="col-sm-10">
								<input type="text" class="form-control" onfocus="change_verify('guestbookverify');" name="verify">
								<br/>
								<p>
									<a onclick="change_verify('guestbookverify')" title="点击更换验证码" style="cursor:pointer">
										<img class="img-rounded" id="guestbookverify" src="{:U('Home/Api/verify')}"
										alt="验证码" style="width:100%">
									</a>
								</p>
							</div>
						</div>
					</eq>
					<div class="form-group">
						<div class="col-sm-offset-2 col-sm-10">
							<button type="submit" class="btn btn-default">提交</button>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
<include file='Common/footer'/>